<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	
	<sf:form modelAttribute="user" method="post" action="./save">
		<sf:errors path="*" cssClass="error"/><br/><!-- 显示所有错误 -->
		<sf:hidden path="id"/>
		<sf:input path="name"/><sf:errors path="name" cssClass="error"/><br/>
		<sf:input path="age"/><br/>
		<sf:input path="email"/><sf:errors path="email" cssClass="error"/><br/>
		<sf:button >提交</sf:button>
	</sf:form>
</body>
</html>